package com.xhsj.user.pms.overseas.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xhsj.user.pms.overseas.dto.MonitorListDto;
import com.xhsj.user.pms.overseas.query.TbPamOverseasRegionalDetailsQuery;
import com.xhsj.user.pms.overseas.query.TimeLimitNameQuery;
import org.apache.ibatis.annotations.Mapper;
import com.xhsj.user.pms.overseas.entity.TbPamOverseasRegionalDetails;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 专利模块海外地区时间详情表 Mapper 接口
 * </p>
 *
 * @author liuqinghua
 * @since 2021-01-22
 */
@Mapper
public interface TbPamOverseasRegionalDetailsMapper extends BaseMapper<TbPamOverseasRegionalDetails> {

    // 国内案件提醒列表
    IPage<Map<String,Object>> getTimeLimitName(Page<Map<String,Object>> page,
                                               @Param("list") List<TbPamOverseasRegionalDetailsQuery> list,
                                               @Param("type") Integer type,
                                               @Param("param") MonitorListDto param);

    // 国内案件提醒数量
    int monitorListNum(@Param("type") Integer type,@Param("list") List<TbPamOverseasRegionalDetailsQuery> list);

    // 获取专利模块海外地区时间详情表全部数据
    List<TbPamOverseasRegionalDetailsQuery> selectListAll(@Param("regionalDetailsId") Long regionalDetailsId);

    // 获取案件提醒类型
    List<Map<String, Object>> getMonitorType();
}
